$(function(){
	
    $(window).load( function(){
//    	var user_id =  localStorage.getItem("user_id")
//    	alert(user_id);
    } );
    
 
 
} );

function clickbtn(job_code){
	var user_id =  localStorage.getItem("user_id");
	var jdata = { 'user_id': user_id, 'action': 'click', 'job_code': job_code,'act_time':new Date()};
	$.ajax({  
        url:"http://47.95.248.93/kafka/individual",
        type: "POST", 
        dataType:'json',
        cache: true, 
        async: false, 
        data:JSON.stringify(jdata), 
        jsonp:'callback',  
        success:function(result) {  
        	console.log(result); 
        },  
        timeout:3000  
    });  
}

function job_collect(job_code){
	var user_id =  localStorage.getItem("user_id")
	var jdata = { 'user_id': user_id, 'action': 'job_collect', 'job_code': job_code,'act_time':new Date()};
	$.ajax({  
        url:"http://47.95.248.93/kafka/individual",
        type: "POST", 
        dataType:'json',
        cache: true, 
        async: false, 
        data:JSON.stringify(jdata), 
        jsonp:'callback',  
        success:function(result) {  
        	console.log(result); 
        },  
        timeout:3000  
    }); 
}

function cv_send(job_code){
	var user_id =  localStorage.getItem("user_id")
	var jdata = { 'user_id': user_id, 'action': 'cv_send', 'job_code': job_code,'act_time':new Date()};
	$.ajax({  
        url:"http://47.95.248.93/kafka/individual",
        type: "POST", 
        dataType:'json',
        cache: true, 
        async: false, 
        data:JSON.stringify(jdata), 
        jsonp:'callback',  
        success:function(result) {  
        	console.log(result); 
        },  
        timeout:3000  
    }); 
}

function cv_upload(job_code){
	var user_id =  localStorage.getItem("user_id")
	var jdata = { 'user_id': user_id, 'action': 'cv_upload', 'job_code': job_code,'act_time':new Date()};
	$.ajax({  
        url:"http://47.95.248.93/kafka/individual",
        type: "POST", 
        dataType:'json',
        cache: true, 
        async: false, 
        data:JSON.stringify(jdata), 
        jsonp:'callback',  
        success:function(result) {  
        	console.log(result); 
        },  
        timeout:3000  
    });  
}